<?php

namespace app\common\model;

use think\Model;

/**
 * 商品数据模型
 */
class Goods extends Model
{
    public static function getGoodsByCompanyId($company_id = 0){
        $data = self::all(function($query){
            $query->where('company_id',$company_id);
        });

        return $data;
    }
}